//
// Created by lvyer on 2021/12/2.
//

#ifndef OPENGLCSUPER_ALPHAFILTER_H
#define OPENGLCSUPER_ALPHAFILTER_H

#include "AbstractBaseFilter.h"
#include <GLES3/gl3.h>
#include "../tools/GLTools.h"

#include <EGL/egl.h>
#include <EGL/eglext.h>
#include <EGL/eglplatform.h>

class AlphaFilter : public AbstractBaseFilter {
public:
    unsigned int VBO, VAO, EBO;
    GLint fTexture;
    GLint alphaId;
    float alphaValue = 1.0;

    AlphaFilter();

    ~AlphaFilter();

    void initFilter() override;

    void changerFilter(int, int) override;

    int drawFilter(int) override;

    bool createFrameBufferObj(int, int);
};


#endif //OPENGLCSUPER_ALPHAFILTER_H
